package com.sql;
import java.net.URL;

/**
 * Created with IntelliJ IDEA.
 * User: sxlju_000
 * Date: 13-11-2
 * Time: 上午10:18
 * To change this template use File | Settings | File Templates.
 */
public class FileUtils {
    public static String createFilePath(String resource) {
        if (resource == null) {
            resource = "";
        }
        URL url = ClassLoader.getSystemClassLoader().getResource(resource);
        return url.getPath();
    }

    public static void main(String[] args) {
        System.out.println("FileUtils.createFilePath(\"\") = " + FileUtils.createFilePath("config.xml"));
    }
}
